package com.cqw.commontest.lottery;

import com.cqw.mapper.one.RewardPoolMapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;

/**
 * @Author: caoqingwen
 * @CreateTime: 2021-04-15 20:24
 * @Description:
 */
public class LotteryTest {


    @Autowired
    private static RewardPoolMapper rewardPoolMapper;


    //总的奖项数据
    public static List<RewardConfig> rewardConfigs = new ArrayList<>();

    public static SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    static {
        try {
            rewardConfigs.add(new RewardConfig(1L, "小米手机1", 1, 1, simpleDateFormat.parse("2021-04-09 10:00:00")));
            rewardConfigs.add(new RewardConfig(2L, "小米手机2", 2, 2, simpleDateFormat.parse("2021-04-09 10:00:00")));
            rewardConfigs.add(new RewardConfig(3L, "小米手机3", 3, 3, simpleDateFormat.parse("2021-04-09 10:00:00")));
            rewardConfigs.add(new RewardConfig(4L, "小米手机4", 4, 2, simpleDateFormat.parse("2021-04-09 13:47:00")));
        } catch (ParseException e) {
            e.printStackTrace();
        }
    }


    public static void main(String[] args) throws ParseException {

    }


}
